package com.codemeta.bokit.comm.global;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 默认错误码
 *
 * @author hice
 * @apiNote 错误码范围：3xxx、4xxx、5xxx
 * @date 2021/11/18
 */
@Getter
@AllArgsConstructor
public enum DefaultErrorCode implements ErrorCode {
    /**
     * 0成功
     */
    ok("0", "成功"),
    unauthorized("401", "未授权"),
    param("4001", "请求参数错误"),
    params("4002", "请求参数对象错误"),
    SERVER_INTERNAL("5000", "服务器内部错误");
    private final String code;
    private final String message;
}